//
//  ext + UIBarButtonItem.swift
//  NewMicroblog
//
//  Created by apple on 2016/10/22.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

extension UIBarButtonItem {
    convenience init(imageName: String? = nil, title: String? = nil,target: Any?, action:Selector) {
        self.init()
        let btn = UIButton(setImage: imageName, title: title, tagart:target , action: action)
        
        self.customView = btn
        
        
    }
    
    
    
}
